<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

<style type="text/css">*{ padding: 0; margin: 0; } .think_default_text{ padding: 4px 48px;} a{color:#2E5CD5;cursor: pointer;text-decoration: none} a:hover{text-decoration:underline; } body{ background: #fff; font-family: "Century Gothic","Microsoft yahei"; color: #333;font-size:18px} h1{ font-size: 100px; font-weight: normal; margin-bottom: 12px; } p{ line-height: 1.6em; font-size: 42px }</style>
<script type="text/javascript" src="https://tajs.qq.com/stats?sId=9347272" charset="UTF-8"></script>
<script type="text/javascript" src="https://e.topthink.com/Public/static/client.js"></script>
<think id="ad_bd568ce7058a1091"></think>
<script src="/static/echart/echarts.js" type="text/javascript"></script>
<div style="overflow-x: hidden;width: 100%;margin: auto;padding-top: 1rem;">
 <div class="layui-row">
    <div class="layui-col-xs6">
      <div class="grid-demo grid-demo-bg1">
            <div id="hnum" style="width: 100%;height: 700px;"></div>
      </div>
    </div>
    <div class="layui-col-xs6">
      <div class="grid-demo">
            <div id="dnum" style="width: 100%;height: 700px;"></div>

      </div>
    </div>
  </div>
               <!--  <div class="row">
                   
                    <div id="hnum" style="width: 45%;height: 400px;">
                         
                    </div> 
                    <div id="dnum" style="width: 45%;height: 400px;">
                    </div>        

                </div> -->
</div>
<script type="text/javascript">
var myChartCnum1 = echarts.init(document.getElementById('hnum'));
option1 = {
    title: {
        text: '折线图示例'
    },
    tooltip: {
        trigger: 'axis'
    },
    legend: {
        data:['数据一','数据二','数据三','数据四','数据五']
    },
    grid: {
        left: '3%',
        right: '4%',
        bottom: '3%',
        containLabel: true
    },
    toolbox: {
        feature: {
            saveAsImage: {}
        }
    },
    xAxis: {
        type: 'category',
        boundaryGap: false,
        data: ['周一','周二','周三','周四','周五','周六','周日']
    },
    yAxis: {
        type: 'value'
    },
    series: [
        {
            name:'数据一',
            type:'line',
            stack: '总量',
            data:[120, 132, 101, 134, 90, 230, 210]
        },
        {
            name:'数据二',
            type:'line',
            stack: '总量',
            data:[220, 182, 191, 234, 290, 330, 310]
        },
        {
            name:'数据三',
            type:'line',
            stack: '总量',
            data:[150, 232, 201, 154, 190, 330, 410]
        },
        {
            name:'数据四',
            type:'line',
            stack: '总量',
            data:[320, 332, 301, 334, 390, 330, 320]
        },
        {
            name:'数据五',
            type:'line',
            stack: '总量',
            data:[820, 932, 901, 934, 1290, 1330, 1320]
        }
    ]
};
 myChartCnum1.setOption(option1,true);
 // =============================================================
 myChartCnum2 = echarts.init(document.getElementById('dnum'));
 option2 = {
    xAxis: {
        type: 'category',
        data: ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun']
    },
    yAxis: {
        type: 'value'
    },
    series: [{
        data: [120, 200, 150, 80, 70, 110, 130],
        type: 'bar'
    }]
};
myChartCnum2.setOption(option2,true);
</script>
</body>
</html>